package com.supreme.studyserver.entity;

import lombok.Data;

import java.util.function.Supplier;

@Data
public class FXPackArray<T> {

    private T[] dataArray;

    public FXPackArray() {
    }

    public FXPackArray(Supplier<T[]> supplier) {
        this.dataArray = supplier.get();
    }

    public <TT> TT[] showGenerics(Supplier<TT[]> data) {
        return data.get();
    }
}
